#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
import sys
# class SceneMenuClass:
#     def __init__(self):
#         self.Background = pygame.transform.scale(pygame.image.load("picture/backgroundgray.jpg"), (200, 400))
#         self.Font = pygame.font.Font("temp/simsun.ttc", 20)
#
#         self.AddButton()
#
#     def AddButton(self):
#         self.Font = self.Font.render("按钮1", True, (155, 0, 0), (205, 190, 112))
#         # self.Background.blit(self.Font, (0,0))
#
#     def ItemButton(self):
#         self.ItemButton = self.Font.render("按钮2", True, (155, 0, 0), (205, 190, 112))
#         # self.Background.blit(self.Font, (0, 0))

# class PlayMenuClass:
#     def __init__(self):
#         self.Background = pygame.transform.scale(pygame.image.load("picture/backgroundgray.jpg"), (200, 100))
#         self.Font = pygame.font.Font("temp/simsun.ttc", 20)
#         self.ButtonDir = {}
#         self.ButtonPlace = {"player": (10, 5), "bag": (100, 5)}
#         self.ButtonIni()
#
#     def ButtonIni(self):
#         self.PlayButton()
#         self.BagButton()
#         self.SkillButton()
#         self.TaskButton()
#
#     def DrawButton(self):
#         self.Background.blit(self.ButtonDir['player'], self.ButtonPlace['player'])
#         self.Background.blit(self.ButtonDir['bag'], self.ButtonPlace['bag'])
#         self.Background.blit(self.ButtonDir['skill'], (10, 55))
#         self.Background.blit(self.ButtonDir['task'], (110, 55))
#
#     def PlayButton(self):
#         self.ButtonDir['player'] = pygame.transform.scale(pygame.image.load("picture/button/button1.png"), (80, 40))
#         self.ButtonDirText = self.Font.render("按钮1", True, (255, 255, 255))
#         self.ButtonDir['player'].blit(self.ButtonDirText, (18, 10))
#         # self.Background.blit(self.ButtonDir['player'], self.ButtonPlace['player'])
#
#     def PlayButtonClickDown(self):
#         self.ButtonPlace['player'] = (12, 7)
#         self.Background = pygame.transform.scale(pygame.image.load("picture/backgroundgray.jpg"), (200, 100))
#
#     def PlayButtonClickUp(self):
#         self.ButtonPlace['player'] = (10, 5)
#         self.Background = pygame.transform.scale(pygame.image.load("picture/backgroundgray.jpg"), (200, 100))
#
#     def BagButton(self):
#         self.ButtonDir['bag'] = pygame.transform.scale(pygame.image.load("picture/button/button1.png"), (80, 40))
#         self.ButtonDirText = self.Font.render("按钮2", True, (255, 255, 255))
#         self.ButtonDir['bag'].blit(self.ButtonDirText, (18, 10))
#         # self.Background.blit(self.ButtonDir['bag'], self.ButtonPlace['bag'])
#
#     def SkillButton(self):
#         self.ButtonDir['skill'] = pygame.transform.scale(pygame.image.load("picture/button/button1.png"), (80, 40))
#         self.ButtonDirText = self.Font.render("按钮3", True, (255, 255, 255))
#         self.ButtonDir['skill'].blit(self.ButtonDirText, (18, 10))
#         # self.Background.blit(self.ButtonDir['skill'], (10, 55))
#
#     def TaskButton(self):
#         self.ButtonDir['task'] = pygame.transform.scale(pygame.image.load("picture/button/button1.png"), (80, 40))
#         self.ButtonDirText = self.Font.render("按钮4", True, (255, 255, 255))
#         self.ButtonDir['task'].blit(self.ButtonDirText, (18, 10))
#         # self.Background.blit(self.ButtonDir['task'], (110, 55))

